package com.bw.controller;

import com.bw.service.TMovieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
public class TMovieController {
    @Autowired
    TMovieService tMovieService;
    @RequestMapping("/cx")
    public Object cx(){
        List<Map>sel=tMovieService.sel();
        return sel;
    }
    @RequestMapping("/name")
    public Object name(){
        List<Map>maps=tMovieService.selM();
        return maps;
    }
    @RequestMapping("/mh")
    public Object mh(String movieName){
        List<Map> maps = tMovieService.selMH(movieName);
        return maps;
    }
    @RequestMapping("/jz")
    public Object jz(String movieName){
        List<Map> maps = tMovieService.selJ(movieName);
        return maps;
    }
    @RequestMapping("/selQ")
    public Object selQ(String movieDate,String endmovieDate){
        List<Map> maps = tMovieService.selQ(movieDate, endmovieDate);
        return maps;
    }
}
